package com.zhang.netty.base;

/**
 * 功能说明: <br>
 * 系统版本: 1.0 <br>
 * 开发人员: zhanch
 * 开发时间: 2020/10/21<br>
 * <br>
 */
public class eeeeee {
    public static void main(String[] args) {
        int a = 59;
        for (int i = 0; i < 32; i++) {
            int t = (a & 0x80000000 >>> i) >>> (31 - i);
            System.out.print(t);
        }
        System.out.println( );
        int n = 19;
        n |= n >>> 1;
        n |= n >>> 2;
        n |= n >>> 4;
        n |= n >>> 8;
        n |= n >>> 16;

        System.out.println(n );
        System.out.println((14 & (14+2)) == 0);
    }

    private static boolean isPowerOfTwoLoseOne(int val) {
        return (val & (val+1)) == 0;
    }
}

